package ssm.dao;

import java.util.List;

import ssm.entity.Department;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer dId);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer dId);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);
    
    Department getDepartmentByName(Department record);
    
    List<Department> allDepartment();
    
    int addDepartment(Department record);
    
    int updateDepartment(Department record);
}